<?php

class BaseRecordExt extends BaseRecord{
	
	//constant wich represents the name of the column in the table
	
	const UPDATED_ON = "updated_on";
	
	
	//constructor that sets the updated_on column into the arrData from 
	//BaseRecord and sets its value
	function __construct(){
		
		parent::__construct();
		parent::addKey(self::UPDATED_ON);
		
	}
	
	//sets data into arrData
	public function setData($objArrData){
		parent::setData($objArrData);
		
		if(array_key_exists(self::UPDATED_ON, $objArrData)){
			$this->setValue(self::UPDATED_ON, $objArrData[self::UPDATED_ON]);
		}else{
			echo "BaseRecExt : objArrData's structure is faulty";
		}
		//echo var_dump($arrData);
	}
	
	//returns the arrDataArray from parent
	public function getArrData(){
		return parent::getArrData();
	}

	//sets a value at key into the arrData object found in the parent
	public function setValue($key,$value){
		parent::setValue($key,$value);
	}
	
	//returns the value for the key in the arrData
	public function getValue($key){
		return parent::getValue($key);	
	}

}
?>